﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuilderPattern
{
    internal class NewRobotBuilder : RobotBuilder
    {
        private Robot robot;

        public NewRobotBuilder()
        {
            this.robot = new Robot();
        }

        public override void buildRobotHead()
        {
            robot.setRobotHead("Iron Head");
        }

        public override void buildRobotTorso()
        {
            robot.setRobotTorso("Iron Torso");
        }

        public override void buildRobotArms()
        {
            robot.setRobotArms("M4A1 Arms");
        }

        public override void buildRobotLegs()
        {
            robot.setRobotLegs("Skateboard");
        }

        public override Robot getRobot()
        {
            return this.robot;
        }
    }
}
